package com.xxwy.ddu.webcontroller;

import com.alibaba.dubbo.config.spring.context.annotation.DubboComponentScan;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.web.bind.annotation.RestController;

import java.io.Serializable;

@EnableRabbit
@EnableScheduling
@RestController
@SpringBootApplication
@ComponentScan(value = {"com.xxwy.ddu.common.autowired.*","com.xxwy.ddu.webservice.*", "com.xxwy.ddu.webcontroller.*"})
@EntityScan("com.xxwy.ddu.webentity.*")
@MapperScan("com.xxwy.ddu.webmapper.*")
@DubboComponentScan("com.xxwy.ddu.webservice.*.impl")
public class DduWebControllerApplication {

    @Autowired
    private RedisTemplate<String, Serializable> xxredisTemplate;

    public static void main(String[] args) {
        SpringApplication.run(DduWebControllerApplication.class, args);

    }

    public void test(){
        xxredisTemplate.opsForValue();
    }



}
